<?php

class ExerciseName
{
	/**
	*@var string
    **/	
	private $exerciseName;

	/**
	*@var int const
    **/	
	const Min_Name_Length = 1;
	/**
	*@var int const
    **/	
	const Max_Name_Length = 40;

	/**
	*@param string
    **/	
	public function __construct($exerciseName)
	{
		if(strlen($exerciseName) >= self::Min_Name_Length && 
		   strlen($exerciseName) <= self::Max_Name_Length)
		{
			$this->exerciseName = $exerciseName;
		}
	}

	/**
	*@return string
    **/	
	public function getExerciseName()
	{
		return $this->exerciseName;
	}
}